<?
	$attributes = array('class' => 'email', 'id' => 'checknew');
	echo form_open('news/dels', $attributes);
?>
<table class="admindata">
    <thead>
        <tr>
            <th colspan="5"> <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="<?=lang('delete');?>">
                <?=lang('total');?>
                <?=$num?>
                <?=lang('record');?>
                <span class="pages">
                <?=$pagination?>
                </span> </th>
        </tr>
        <tr>
            <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
            <th><?=lang('title');?></th>
            <th><?=lang('create_date')?></th>
            <th class="center" style="width:22px;">Home</th>
            <th class="publish"><?=lang('functions');?></th>
        </tr>
    </thead>
    <?
        $k=1;
        $i=1;
        foreach($list as $rs):
			$title = !empty($rs->lb_imagehome)  ? '<b>'.$rs->lb_title.'</b>' : $rs->lb_title ;
        ?>
    <tr class="row<?=$k?>">
        <td><input type="checkbox" name="ar_id[]" value="<?=$rs->news_id?>"></td>
        <td><?=$title?></td>
        <td><?=format_date_show($rs->dt_create)?></td>
        <td class="center"><? if($rs->bl_home==1) echo $rs->bl_home ?></td>
        <td align="center"><?=icon_edit('news/edit/'.$rs->news_id)?>
            <span id="publish<?=$rs->news_id?>">
            <?=icon_active("'fm_news'","'news_id'",$rs->news_id,$rs->bl_active)?>
            </span>
            <?//=icon_del('news/del/'.$rs->news_id.'/'.(int)$this->uri->segment(4))?></td>
    </tr>
    <?
        $k=1-$k;
        $i++;
        endforeach;?>
    <tfoot>
    <td colspan="5"><input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="<?=lang('delete');?>">
            <?=lang('total');?>
            <?=$num?>
            <?=lang('record');?>
            <span class="pages">
            <?=$pagination?>
            </span></td>
            </tfoot>
</table>
<?=form_close()?>
